package com.ruoyi.web.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.GuMrGuMapper;
import com.ruoyi.web.domain.GuMrGu;
import com.ruoyi.web.service.IGuMrGuService;

/**
 * 股票列Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-17
 */
@Service
public class GuMrGuServiceImpl implements IGuMrGuService 
{
    @Autowired
    private GuMrGuMapper guMrGuMapper;

    /**
     * 查询股票列
     * 
     * @param id 股票列主键
     * @return 股票列
     */
    @Override
    public GuMrGu selectGuMrGuById(String id)
    {
        return guMrGuMapper.selectGuMrGuById(id);
    }

    /**
     * 查询股票列列表
     * 
     * @param guMrGu 股票列
     * @return 股票列
     */
    @Override
    public List<GuMrGu> selectGuMrGuList(GuMrGu guMrGu)
    {
        return guMrGuMapper.selectGuMrGuList(guMrGu);
    }

    /**
     * 新增股票列
     * 
     * @param guMrGu 股票列
     * @return 结果
     */
    @Override
    public int insertGuMrGu(GuMrGu guMrGu)
    {
        guMrGu.setCreateTime(DateUtils.getNowDate());
        return guMrGuMapper.insertGuMrGu(guMrGu);
    }

    /**
     * 修改股票列
     * 
     * @param guMrGu 股票列
     * @return 结果
     */
    @Override
    public int updateGuMrGu(GuMrGu guMrGu)
    {
        guMrGu.setUpdateTime(DateUtils.getNowDate());
        return guMrGuMapper.updateGuMrGu(guMrGu);
    }

    /**
     * 批量删除股票列
     * 
     * @param ids 需要删除的股票列主键
     * @return 结果
     */
    @Override
    public int deleteGuMrGuByIds(String[] ids)
    {
        return guMrGuMapper.deleteGuMrGuByIds(ids);
    }

    /**
     * 删除股票列信息
     * 
     * @param id 股票列主键
     * @return 结果
     */
    @Override
    public int deleteGuMrGuById(String id)
    {
        return guMrGuMapper.deleteGuMrGuById(id);
    }
}
